package cn.junki.sparkbigmodeldemo.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 对话回答封装
 *
 * @author Junki
 * @date 2023-09-21 12:51:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SparkBigModelChatVO implements Serializable {

    /**
     * 星火大模型响应码
     */
    private Integer code;

    /**
     * 回答状态码：回答时必传 0-开始 1-中间 2-结束
     */
    private Integer status;

    /**
     * 回答内容
     */
    private String content;

    public boolean isSuccess() {
        return this.code == 0;
    }

}
